package demo.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author GuoFei
 * @date 2018/9/4 16:01
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface FruitColor {

    /**
     * 颜色枚举
     */
    public enum Color {BULE, RED, GREEN,};

    /**
     * 颜色属性
     * @return
     */
    Color fruitColor() default Color.GREEN;

}
